<?php
define('TIME_NOW',time());
ini_set ('zend.ze1_compatibility_mode','off');
putenv("Asia/Saigon");
date_default_timezone_set('Asia/Bangkok');

set_magic_quotes_runtime(false);

define('CHECK_DOMAIN', 0);//check valid domain (tuannk)

define('ROOT_PATH', str_replace(array('core/'),array(''),strtr(dirname( __FILE__ ) ."/",array('\\'=>'/'))));
$webroot=str_replace('\\','/','http://'.$_SERVER['HTTP_HOST'].(dirname($_SERVER['SCRIPT_NAME'])?dirname($_SERVER['SCRIPT_NAME']):''));
$webroot.=$webroot[strlen($webroot)-1]!='/'?'/':'';
define('WEB_ROOT',$webroot);
unset($webroot);
define('OID_URL','');
define('STATIC_URL','/tcs/');


define('WEB_DIR','/tcs/');
define('WEB_DOMAIN','');//noithattcs.com.vn
define('WEB_NAME','NoiThatTCS.com.vn');
define('WEB_TITLE','Nội Thất TCS');

if(!defined('DATA_PATH'))
    define('DATA_PATH','web_data/');

// Master server DB
define('DB_MASTER_SERVER','localhost');
define('DB_MASTER_USER','root');
define('DB_MASTER_PASSWORD','root');
define('DB_MASTER_NAME','tcs_db');


// Slave server  DB (for replicate db)
define('_DB_REPLICATE',false);
define('DB_SLAVE_SERVER','');
define('DB_SLAVE_USER','');
define('DB_SLAVE_PASSWORD','');
define('DB_SLAVE_NAME','');

//Set default charset DB : LATIN / UTF8
define('DB_CHARSET','UTF8');


//Image FTP user
$img_ftp_server =   array(
    0=>array(
        'host'=>'localhost',
        'user'=>'',
        'pass'=>'',
    ),
);


define('IMAGE_PATH','/tcs/img/');
define('UP_FOLDER','up_new');
define('UP_PATH',ROOT_PATH.'img/');

define('UP_TYPE','file');//ftp

define('IMAGE_SERVER_NO',0);
//img server 
$img_server =   array(
    0=>'/tcs/img/',
);

//my server 
$server_list=array('localhost/tcs');


define('MEMCACHE_ON', 0);

$memcache_server =  array(
    array("host"=>"127.0.0.1","port"=>"11211"),
);
define('MEMCACHE_ID','noithattcs');

//System Constants
//Session config
/*
 memcache - session memcache
 db - session database
 file - session file
*/
define( 'SESSION_TYPE' , 'file');

define('MEMCACHE_SESSION_HOST', "127.0.0.1");
define('MEMCACHE_SESSION_PORT', "11211");

define('_SESS_TABLE', "sessions");
//define('_SESS_TABLE', "sessions_mem");
define('_SESS_TIME_EXPIRE', "10800");


define('SYS_OS', 		'win');//linux
define('DIR_CACHE', 	ROOT_PATH."_cache/");
define('DIR_MODULE', 	ROOT_PATH."modules/");
define('CACHE_ON', 		0);
define('REWRITE_ON', 	1);//rewrite URL
define('REG_ON',		true); // Bat dang ky thanh vien

define('OPENID_ON',0); // Bat dang nhap bang openid

define('USER_ACTIVE_ON',0); // Bat acctive user qua email

define( 'CRONJOB_URL' , '');//define( 'CRONJOB_URL' , 'http://192.168.28.200/cronjob/task.gif');

if(!defined('ADV_OFF')){
    define('ADV_OFF',0);
}

if(ADV_OFF || (isset($_GET['page']) && (in_array($_GET['page'],array('post_item')) || ($_GET['page']=='personal' && isset($_GET['cmd']) && $_GET['cmd']=='gallery'))) ){
    define('ADMICRO_ON', 0);
}
else{
    define('ADMICRO_ON', 1);//1
}


//config mail
define('MAIL_ON', 0);//
define('SMTP_HOST','smtp.gmail.com');//ssl://smtp.gmail.com
define('SMTP_SECURE','ssl');//
define('SMTP_PORT',465);
define('SMTP_METHOD','smtp');//'mail';for Old style PHP Mailer || smtp
define('SMTP_AUTH',true);
define('SMTP_FROM_EMAIL',"contact@noithattcs.com.vn");
define('SMTP_USER','noreply@noithattcs.com.vn');
define('SMTP_PASS','');


define('FEEDBACK_EMAIL', 	'contact@noithattcs.com.vn');

//Fax: <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(04) 35371526</strong><br />
define('MAIL_FOOTER', 		'<p><hr /><strong>NoiThatTCS</strong><br />
							  <br />
							  Địa chỉ: <strong>Hà Nội.</strong><br />
							  Điện thoại: &nbsp;&nbsp;&nbsp;&nbsp;<strong>(+84.4) </strong><br />
							  Email: <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:contact@noithattcs.com.vn">contact@noithattcs.com.vn</a></strong>
							  </p>
							<p>Website : &nbsp;&nbsp;&nbsp;&nbsp;<strong><u><a href="http://noithattcs.com.vn">http://noithattcs.com.vn</a></u></strong></p>');


define('FOOTER_CONTENT', 	'Copyright © 2011 <a href="http://"'.strtolower(WEB_NAME).'">NoiThatTCS</a> - P112 - TT Viện Công Nghệ - Vũ Ngọc Phan - Láng Hạ - Hà Nội.<br />
				            Điện thoại: (04)    Fax: (04) <br />
				            Email: <a href="mailto:sales@'.strtolower(WEB_NAME).'">sales@'.strtolower(WEB_NAME).'</a>');


define('PRINT_CONTENT', 	'<strong>NoiThatTCS</span></strong><br />
					            <strong>Địa chỉ:</strong> Hà Nội.<br />
					          <strong>Điện thoại:</strong>(+84.4) <br />');


define('META_KEYWORDS', 	'');


define('META_DESCRIPTION', 	WEB_TITLE);
?>